home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group97a.txt / 000095_icon-group-sender _Sun Mar 23 07:32:50 1997.msg < prev    next >
Internet Message Format  |  2000-09-20  |  1KB

  1. Received: by cheltenham.cs.arizona.edu; Sun, 23 Mar 1997 18:40:55 MST
  2. Date: Sun, 23 Mar 1997 07:32:50 -0600 (CST)
  3. From: "Chris D. Tenaglia" <cdt@post.its.mcw.edu>
  4. To: icon-group@cs.arizona.edu
  5. Subject: {Q
  6. Message-Id: <Pine.ULT.3.90.970323072605.3105A-100000@post.its.mcw.edu>
  7. Mime-Version: 1.0
  8. Content-Type: TEXT/PLAIN; charset=US-ASCII
  9. Errors-To: icon-group-errors@cs.arizona.edu
  10. Status: RO
  11. Content-Length: 740
  12.  
  13. Oops. Forgot a little something.
  14.  
  15. procedure main()
  16.   while line := read() do
  17.     {
  18.     line := if find("{Q",line) then "\t" || line || "\n\t" else line || "\n"
  19.     writes(line)
  20.     }
  21.   end
  22.  
  23. Amazing what a sip of coffee can accomplish. Another nice feature
  24. of icon is that you don't have to terminate statements with ;
  25. I use ; to put multiple expressions on one line when it helps
  26. the code. While || appends strings and it works in a write()
  27. context, write(a,b,c,d) is more traditional, with comma separation.
  28.  
  29. Chris Tenaglia   (system manager)     |  cdt@post.its.mcw.edu
  30. Medical College of Wisconsin          |
  31. 8701 W. Watertown Plank Rd.           |  Ce que vous voyez est
  32. Milwaukee, WI 53226   (414)456-8765   |  ce que vous obtenez !
  33.  
  34.